﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace stata
{
    /// <summary>
    /// Interaction logic for nazwy.xaml
    /// </summary>
    
    public partial class nazwy : Window
    {
        public int res = 0;
        public string sciez;
        public Operations oper;
        public nazwy(string sc, Operations o)
        {
            InitializeComponent();
            sciez = sc;
            oper = o;
        }

        private void button1_Click(object sender, RoutedEventArgs e)
        {
            int p = oper.wczytajnazwy(sciez);
            oper.wczytajdane(sciez,p);
            this.Close();
        }

        private void button2_Click(object sender, RoutedEventArgs e)
        {
            oper.stworzkolumny(sciez);
            oper.wczytajdane(sciez, 0);
           
           
            this.Close();
        }
    }
}
